From 081f1790c75caba6b235efdc7976e545bab4592e Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 1 Jun 2024 18:42:19 +0300 Subject: [PATCH] luci-app-acme: put validation_method above domains A user must specify the validation_method first. Signed-off-by: Sergey Ponomarev --- .../htdocs/luci-static/resources/view/acme.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js index 4f526fe6a1..97e9914387 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js @@ -68,21 +68,22 @@ return view.extend({ o = s.taboption('general', form.Flag, "enabled", _("Enabled")); o.rmempty = false; + o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'), + _('Standalone mode will use the built-in webserver of acme.sh to issue a certificate. ' + + 'Webroot mode will use an existing webserver to issue a certificate. ' + + 'DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate.') + ); + o.value('standalone', _('Standalone')); + o.value('webroot', _('Webroot')); + o.value('dns', _('DNS')); + o.default = 'webroot'; + o = s.taboption('general', form.DynamicList, "domains", _("Domain names"), _("Domain names to include in the certificate. " + "The first name will be the subject name, subsequent names will be alt names. " + "Note that all domain names must point at the router in the global DNS.")); o.datatype = "list(string)"; - o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'), - _("Standalone mode will use the built-in webserver of acme.sh to issue a certificate. " + - "Webroot mode will use an existing webserver to issue a certificate. " + - "DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate.")); - o.value("standalone", _("Standalone")); - o.value("webroot", _("Webroot")); - o.value("dns", _("DNS")); - o.default = 'webroot'; - o = s.taboption('challenge_webroot', form.Value, 'webroot', _('Webroot directory'), _("Webserver root directory. Set this to the webserver " + "document root to run Acme in webroot mode. The web " + -- 2.30.2